<template>
    <div class="conatainer">
        <div class="conatainer-img" @click="jump">
            <img :src="finace.finance_ad_pc" />
            <!-- <base-img :src="finace.finance_ad_pc"></base-img> -->
        </div>
    </div>
</template>

<script>
import { finaceSetting } from '@/api/user';
export default {
    data() {
        return {
            finace: {}
        }
    },
    created() {
        this.getFinace();
    },
    methods: {
        getFinace() {
            finaceSetting().then(res => {
                if (res.code == 0) {
                    this.finace = res.data;
                    console.log('this.finace', this.finace)
                }
            })
        },
        jump() {
            if (this.finace.finance_ad_link) {
                window.open(this.finace.finance_ad_link, '_blank');
            }
        }
    }
}
</script>

<style lang="scss" scoped>
.conatainer-img {
    width: 100%;
    height: 540px;
    margin-top: 15px;
}
</style>